DataSource for Entity Framework in WPF
C1.LiveLinq.Indexing Namespace / ScannerCollection<T> Class / Add Method / Add<TKey>(Expression<Func<T,TKey>>) Method
The type of the index key.
Key selector expression of the index, see KeySelector.

In This Topic
    Add<TKey>(Expression<Func<T,TKey>>) Method
    In This Topic
    Creates a new index and adds it to the collection of indexes.
    Syntax
    'Declaration
     
    Public Overloads Function Add(Of TKey)( _
       ByVal keySelector As Expression(Of Func(Of T,TKey)) _
    ) As IIndexScanner(Of T,TKey)

    Parameters

    keySelector
    Key selector expression of the index, see KeySelector.

    Type Parameters

    TKey
    The type of the index key.

    Return Value

    The new index added to the collection of indexes.
    See Also